<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        [v-cloak] { display: none }
    </style>
</head>
<body>
    <div id="app">
        <span v-once>{{msg}}</span>
        <span v-pre>{{ this will not be compiled }}</span>
        <ul>
            <li v-for="(item,index) in list" v-if="item.isUp" :key="item.id">
                {{item.name}}
            </li>
        </ul>
    </div>
    <script src="./vue.js"></script>
    <script>
        let vm = new Vue({
            el:'#app',
            data:{
                msg:'hello world',
                list:[
                    {
                        name:'姑娘1',
                        isUp:false,
                        id:1
                    },
                    {
                        name:'姑娘2',
                        isUp:true,
                        id:2
                    },
                    {
                        name:'姑娘3',
                        isUp:false,
                        id:3
                    }
                ]
            }
        })
    </script>
</body>
</html>